Replace pdflatex with LuaLatex and latexmk #911
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you so much for making this software open source. I am still learning to use it and I am currently working on improving the LaTex backend to finally integrate Facture-X/Zugferd and Order-X into the billing backend.
I would like to push those changes upstream as I progress if you are interested.
This PR starts with a small change to the LaTex backend replacing
pdflatex
withlualatex
andlatexmk
. The latter has the following advantages over calling plainpdflatex
orlualatex
:latexmk
will call tex multiple times if several passes are required by the tex engine.latexmk
has the-cd
flag which enters the temp directory during compilation and allows relative imports of auxiliary files like images (e.g. company logos or scanned signatures)I chose to replace
pdflatex
withlualatex
becauselualatex
offers a more modern backend with better utf-8 support. It also represent the current development direction instead ofpdflatex
which will see no new features added. This change will make generating compliant PDFs for Facture-X a lot easier later on.The change from
lualatex
topdflatex
changes the default Computer Modern font (or rather European Computer Modern when loading the T1 font usingfontenc
) used bypdflatex
to Latin Modern as this is a unicode compliant default font. Since the LaTex templates are demo templates I do not see an issue here.